package com.cuit.service.impl;

import com.cuit.dao.IRecycleDao;
import com.cuit.domain.File;
import com.cuit.service.RecycleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RecycleServiceImpl implements RecycleService {

    @Resource
    private IRecycleDao dao;

    @Override
    public int deleteFile(int fileId) {
        return dao.deleteFile(fileId);
    }

    @Override
    public int deleteFiles(int userId) {
        return dao.deleteFiles(userId);
    }

    @Override
    public int fakeDeleteFile(int fileId, int isDelete) {
        return dao.fakeDeleteFile(fileId,isDelete);
    }

    @Override
    public List<File> viewGarbage(int userId) {
        return dao.viewGarbage(userId);
    }
}
